package cn.demomaster.quickdb.adapter;

import android.view.View;
import android.view.ViewGroup;

import cn.demomaster.quickdb.model.ColumnInfo;

public interface ITableAdapter {
    public ViewGroup getRowLayout(int rowIndex);//获取行布局
    public View getCellView(ViewGroup patentView, int viewType);//获取单元格布局
    int getRowCount();//获取行数
    int getColumnCount();//获取列数
    public void bindRowViewData(int rowIndex, ViewGroup rowlayout);//绑定行数据
    public void bindCellViewData(int rowIndex, int columnIndex, ViewGroup viewGroup, View itemView);//绑定单元

    String formatColumnValue(String tableName, ColumnInfo columnInfo, Object value);
}
